Skip to content

fix: populate env.json with valid Kafka bootstrap addresses#188

Merged
asyncapi-bot merged 3 commits intoasyncapi:masterfrom
dalelane:fix-kafka-bootstrap
Mar 9, 2024
Merged

fix: populate env.json with valid Kafka bootstrap addresses#188
asyncapi-bot merged 3 commits intoasyncapi:masterfrom
dalelane:fix-kafka-bootstrap

Conversation

@dalelane
Copy link
Copy Markdown
Collaborator

@dalelane dalelane commented Mar 8, 2024

The generator was putting the "kafka-secure://" protocol prefix in the bootstrap address for generated Kafka apps, which the Kafka client library rejects as an invalid URL.

This commit uses the hostname if it is available (v3 docs) but falls back to using the url otherwise (v2 docs).

The generator was putting the "kafka-secure://" protocol prefix
in the bootstrap address for generated Kafka apps, which the Kafka
client library rejects as an invalid URL.

This commit uses the hostname if it is available (v3 docs) but
falls back to using the url otherwise (v2 docs).

Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
@dalelane
Copy link
Copy Markdown
Collaborator Author

dalelane commented Mar 8, 2024

/rtm

@asyncapi-bot
Copy link
Copy Markdown
Contributor

Hello, @dalelane! 👋🏼
This PR is not up to date with the base branch and can't be merged.
Please update your branch manually with the latest version of the base branch.
PRO-TIP: Add a comment to your PR with the text: /au or /autoupdate and our bot will take care of updating the branch in the future. The only requirement for this to work is to enable Allow edits from maintainers option in your PR.
Thanks 😄

@dalelane
Copy link
Copy Markdown
Collaborator Author

dalelane commented Mar 8, 2024

/rtm /au

@asyncapi-bot
Copy link
Copy Markdown
Contributor

Hello, @dalelane! 👋🏼
This PR is not up to date with the base branch and can't be merged.
Please update your branch manually with the latest version of the base branch.
PRO-TIP: Add a comment to your PR with the text: /au or /autoupdate and our bot will take care of updating the branch in the future. The only requirement for this to work is to enable Allow edits from maintainers option in your PR.
Thanks 😄

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 8, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
2.8% Duplication on New Code

See analysis details on SonarCloud

@dalelane
Copy link
Copy Markdown
Collaborator Author

dalelane commented Mar 9, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit 82ede4d into asyncapi:master Mar 9, 2024
@asyncapi-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants